
<?php include_once(dirname(__FILE__) . '/../general/head.php'); ?>

<!-- header -->
<?php include_once(dirname(__FILE__) . '/../general/header.php'); ?>

<?php include_once('left.php'); ?>


<div id="page-wrapper">
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">Xuất ra csv (excel)</h1>
        </div>
    </div>

    <div class="row">
        <div class="col-lg-6">
            <form method="post" action="<?php echo site_url(get_folder($loggedUser['title']) . '/home/export'); ?>"> 
                <input type="hidden" name="Command" value="Submit" />
                <select multiple="multuple" class="form-control" name="fields[]" size="30" style="height: 100%;">
                    <?php foreach($fields as $key => $value){  ?>
                    <option value="<?php echo $key; ?>"><?php echo $value; ?></option>
                    <?php } ?>
                </select>
                <br/>
                <input type="submit" class="btn btn-primary" value="Export" />
                <br/><br/>
            </form>
        </div>
    </div>



</div>
<!-- /#page-wrapper -->

<?php include_once(dirname(__FILE__) . '/../general/footer.php'); ?>